package ink.lovejinhu.leetcode;

/**
 * @author jinhu
 * created 2021-07-12 14:07
 */
public class Solution_0344 {
    /**
     * 反转字符串
     */
    public void reverseString(char[] s) {
        for (int i = 0, j = s.length - 1; i < j; i++, j--) {
            char temp = s[i];
            s[i] = s[j];
            s[j] = temp;
        }
    }
}
